readParcelableCreator
open fun <T> readParcelableCreator(@NonNull in: Parcel, @Nullable loader: ClassLoader, @NonNull clazz: Class<T>): Parcelable.Creator<T>(source)
Same as readParcelableCreator but accepts clazz
parameter as the required type. Compatibility behavior:
- SDK 34 and later, this method matches platform behavior.
- SDK 33 and below, this method will not check the creator's type.
Throws
Throws BadParcelableException if the item to be deserialized is not an instance of that class or any of its children classes or there there was an error trying to read the Parcelable.Creator.